<html>
<head>
<title>User Details</title>
<style>
table,tr,td,th {
	border: 1px solid gray;
}

a:link {
	text-decoration: none;
}
</style>
</head>
<body>
	<table>
		<tr>
			<th>Username</th>
			<th>First Name</th>
			<th>Middle Name</th>
			<th>Last Name</th>
			<th>Address</th>
			<th>Updated By</th>
			<th>Date Updated</th>
			<th>Action</th>
			<th>Action</th>
		</tr>


		<?php foreach($user_details as $details) {
			echo "<tr>
			<td>$details[username]</td>
			<td>$details[fname]</td>
			<td>$details[mname]</td>
			<td>$details[lname]</td>
			<td>$details[address]</td>
			<td>$details[updated_by]</td>
			<td>$details[date_updated]</td>
			<td><a href=edit/$details[id]>Edit</a></td>
			<td><a href=delete/$details[id] onclick='return confirm(\"Are you sure to delete?\")'> Delete </a></td>
			</tr>";
		}
		?>

	</table>
</body>
</html>
